package com.atguigu.ssyx.cart.client;

import com.atguigu.ssyx.model.order.CartInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * ClassName: CartFeignClient
 * Package: com.atguigu.ssyx.cart.client
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-10-16
 * Time: 19:43
 */

@FeignClient("service-cart")
public interface CartFeignClient {

    //获取购物车选中的商品
    @GetMapping("/inner/getCartCheckedList/{userId}")
    public List<CartInfo> getCartCheckedList(@PathVariable("userId") Long userId);

}
